﻿@model IList<HZU.ZP.Domain.Model.ApplicantInf>
@{
    Layout = "_AdminLayout";
}
<script type="text/javascript">
        $(document).ready(function () {
            $(".eee").mouseover(function () {
                $(this).css({ "background-color": "gainsboro" });
            }).mouseout(function () {
                $(this).css({ "background-color": "" });
            });
        });
</script>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-3 column">
            <span>邮箱</span>
        </div>
        <div class="col-md-3 column">
            <span>姓名</span>
        </div>
        <div class="col-md-3 column">
            <span>性别</span>
        </div>
        <div class="col-md-3 column">
            <span>申请职位总数</span>
        </div>
    </div>
    @if (Model.Count > 0)
    {
        foreach (var app in Model)
        {
            <div class="eee">
                <div class="row clearfix">
                    <div class="col-md-3 column">
                        <a href="/Admin/GetIdResume?applicantId=@app.ApplicantId">@app.Email</a>
                    </div>
                    <div class="col-md-3 column">
                        @app.Name
                    </div>
                    <div class="col-md-3 column">
                        @app.Sex
                    </div>
                    <div class="col-md-3 column">
                        @app.Total
                    </div>
                </div>
            </div>
        }
    }
    else
    {
        <br />
        <h4 style="height:300px;text-align:center">无数据。。。</h4>
    }
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div style="text-align: center;">
                <ul class="pagination">
                    @for (int i = (int)ViewData["PageIndex"] - 2 <= 0 ? 1 : (int)ViewData["PageIndex"] - 2; i < (int)ViewData["PageIndex"]; i++)
                    {
                        <li><a href="#">@i</a></li>
                    }
                    @if ((int)ViewData["PageIndex"] > 0)
                    {
                        <li><a href="javascript:;" style="background-color:LightGrey">@((int)ViewData["PageIndex"])</a></li>
                    }
                    @for (int i = (int)ViewData["pageIndex"] + 1; i <= (int)ViewData["PageCount"] && i < (int)ViewData["pageIndex"] + 2; i++)
                    {
                        <li><a href="#">@i</a></li>
                    }
                    <li><a style="border :none;background-color:white">&nbsp;&nbsp;&nbsp;&nbsp;共@((int)ViewData["PageCount"])页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>

